<template>
	<!--产品数据-->
	<view class="com-content">

		<!--产品图片数据-->
		<view class="com-top2">
			<image class="com-body-img" :src="obj.pro_img"></image>
			<!--替换图片-->
			<image class="sel-img1" :src="$mAssetsPath.icon_replace" @click.stop="replace_img(obj.id)"></image>
			<!--删除图片-->
			<image class="sel-img2" :src="$mAssetsPath.icon_sc4" @click.stop="delete_img(obj.id)"></image>
			<view class="com-body-box">
				<view class="box-name">{{obj.pro_name}}</view>
				<view class="box-txt" v-if="pageType==='pop'">
					<block v-for="(item,iii) in obj.pro_txt" :key="iii">
						<view class="box-txt-li">{{item}}</view>
					</block>
				</view>
				<view class="box-remark">
					<view class="box-remark-l">备注：{{obj.remark}}</view>
					<image @click.stop="edit_remark(obj.id)" class="box-remark-r" :src="$mAssetsPath.icon_bianji3">
					</image>
				</view>
			</view>
		</view>
		<view class="com-body">
			<block v-for="(item,index) in obj.datalist" :key="index">
				<view class="com-body-li" v-if="pageType==='pop' || pageType==='prop'">
					<view class="li-title">
						<text class="li-title-t">{{item.pro_name}}</text>
					</view>
					<!--产品规格-->
					<block v-for="(ite,ind) in item.list" :key="ind">
						<!--pop二级规格-->
						<template v-if="ite.type===1&&pageType==='pop'">
							<view class="li-box">
								<view class="li-box-o">{{ite.name}}</view>
							</view>

							<block v-for="(it,i) in ite.list" :key="i">
								<!--左滑盒子-->
								<view class="slide-box" @touchstart="touchStart1" @touchmove="touchMove1"
									@touchend="touchEnd1" @touchcancel="touchEnd1"
									:style="{'transform':messageIndex1 == i ? transformX1 : 'translateX(0px)','-webkit-transform':messageIndex1 == i? transformX1 : 'translateX(0px)'}"
									:data-index="i" :data-disabled="it.disabled">
									<!--左侧内容-->
									<view class="li-box-li">
										<view class="li-box-o">{{it.name}}</view>
										<view class="li-box-t" v-if="it.is_edit===2">
											<view class="li-box-w">{{it.sizew}}</view>x
											<view class="li-box-w">{{it.sizeh}}</view>
										</view>
										<view class="li-box-t" v-else-if="it.is_edit===1">
											<input class="input-row-w" type="number" v-model="it.sizew"
												placeholder="长度(cm)"
												placeholder-style="color:#ddd;font-size:20rpx;"></input>x
											<input class="input-row-w" type="number" v-model="it.sizeh"
												placeholder="长度(cm)"
												placeholder-style="color:#ddd;font-size:20rpx"></input>
										</view>
										<view class="li-box-th">
											<image class="icon-jj" v-if="it.num>0" :src="$mAssetsPath.icon_jianhao"
												@click="rednum1(index,ind,i)"></image>
											<view class="li-box-th-num" v-if="it.num>0">{{it.num}}</view>
											<image class="icon-jj" :src="$mAssetsPath.icon_jiahao"
												@click="addnum1(index,ind,i)"></image>
										</view>
									</view>
									<!--左滑删除-->
									<view class="uni-swipe-action__btn-group" :id="elId1">
										<div v-for="(its,ii) in options" :key="ii" class="uni-swipe-action--btn"
											:style="{backgroundColor: its.style && its.style.backgroundColor ? its.style.backgroundColor : '#C7C6CD',color: its.style && its.style.color ? its.style.color : '#FFFFFF',fontSize: its.style && its.style.fontSize ? its.style.fontSize : '28upx'}"
											@click="bindClickBtn(its,index)">
											{{its.text }}
										</div>
									</view>

								</view>
							</block>
							<!--增加-->
							<image class="li-texture-bot1" @click="add_pro('3')" :src="$mAssetsPath.icon_add_but"></image>

						</template>
						<template v-else-if="ite.type===2&&pageType==='pop'">
							<!--滑动-->
							<view class="slide-box" @touchstart="touchStart2" @touchmove="touchMove2"
								@touchend="touchEnd2" @touchcancel="touchEnd2"
								:style="{'transform':messageIndex2 == ind ? transformX2 : 'translateX(0px)','-webkit-transform':messageIndex2 == ind? transformX2 : 'translateX(0px)'}"
								:data-index="ind" :data-disabled="ite.disabled">
								<!--左侧内容pop一级规格-->
								<view class="li-box-li2">
									<view class="li-box-o">{{ite.name}}</view>
									<view class="li-box-t" v-if="ite.is_edit===2">
										<view class="li-box-w">{{ite.sizew}}</view>x
										<view class="li-box-w">{{ite.sizeh}}</view>
									</view>
									<view class="li-box-t" v-else-if="ite.is_edit===1">
										<input class="input-row-w" type="number" v-model="ite.sizew"
											placeholder="长度(cm)"
											placeholder-style="color:#ddd;font-size:20rpx;"></input>x
										<input class="input-row-w" type="number" v-model="ite.sizeh"
											placeholder="长度(cm)" placeholder-style="color:#ddd;font-size:20rpx"></input>
									</view>
									<view class="li-box-th">
										<image class="icon-jj" v-if="ite.num>0" :src="$mAssetsPath.icon_jianhao"
											@click="rednum2(index,ind)">
										</image>
										<view class="li-box-th-num" v-if="ite.num>0">{{ite.num}}</view>
										<image class="icon-jj" :src="$mAssetsPath.icon_jiahao"
											@click="addnum2(index,ind)">
										</image>
									</view>
								</view>
								<!--左滑删除-->
								<view class="uni-swipe-action__btn-group" :id="elId2">
									<div v-for="(its,ii) in options" :key="ii" class="uni-swipe-action--btn"
										:style="{backgroundColor: its.style && its.style.backgroundColor ? its.style.backgroundColor : '#C7C6CD',color: its.style && its.style.color ? its.style.color : '#FFFFFF',fontSize: its.style && its.style.fontSize ? its.style.fontSize : '28upx'}"
										@click="bindClickBtn(its,index)">
										{{its.text }}
									</div>
								</view>
							</view>

						</template>
						<template v-else-if="pageType==='prop'">
							<!--左滑盒子-->
							<view class="slide-box" 
							@touchstart="touchStart1" 
							@touchmove="touchMove1"
							@touchend="touchEnd1" 
							@touchcancel="touchEnd1"
							:style="{'transform':messageIndex1 == ind ? transformX1 : 'translateX(0px)','-webkit-transform':messageIndex1 == ind? transformX1 : 'translateX(0px)'}"
							:data-index="ind" 
							:data-disabled="ite.disabled">
								<view class="li-box-li2">
									<view class="li-box-o">{{ite.name}}</view>
									<view class="li-box-th">
										<image class="icon-jj" v-if="ite.num>0" :src="$mAssetsPath.icon_jianhao"
											@click="rednum2(index,ind)">
										</image>
										<view class="li-box-th-num" v-if="ite.num>0">{{ite.num}}</view>
										<image class="icon-jj" :src="$mAssetsPath.icon_jiahao"
											@click="addnum2(index,ind)">
										</image>
									</view>
								</view>
								<!--左滑删除-->
								<view class="uni-swipe-action__btn-group" :id="elId1">
									<div v-for="(its,ii) in options" :key="ii" class="uni-swipe-action--btn"
										:style="{backgroundColor: its.style && its.style.backgroundColor ? its.style.backgroundColor : '#C7C6CD',color: its.style && its.style.color ? its.style.color : '#FFFFFF',fontSize: its.style && its.style.fontSize ? its.style.fontSize : '28upx'}"
										@click="bindClickBtn(its,index)">
										{{its.text }}
									</div>
								</view>
							</view>
						</template>
					</block>
					<!--增加-->
					<image class="li-texture-bot2" @click="add_pro('2')" :src="$mAssetsPath.icon_add_but"></image>

					<template v-if="pageType==='pop'">
						<template v-if="item.texture && item.texture.length>0">
							<view class="li-texture" @click="sel_mat(index)">材质：
								<block v-for="(li,ii) in item.texture" :key="ii">
									<view class="li-texture-txt">{{li}}</view>
								</block>
							</view>
						</template>
						<template v-else>
							<image class="li-texture-bot" @click="sel_mat(index)" :src="$mAssetsPath.icon_add_but"></image>
						</template>
					</template>
				</view>
			</block>
			<!--增加-->
			<image class="li-texture-bot3" @click="add_pro('1')" :src="$mAssetsPath.icon_add_but2"></image>


			<view class="com-body-count" v-if="obj.count_money">
				<view class="count-name">供应商：<text class="count-name-txt">{{obj.sup_name}}</text></view>
				<view class="count-money">金额：¥{{obj.count_money}}</view>
			</view>
		</view>
		<w-popup :show="showtip" :type="type1" @change="change1">
			<view class="w-tip">
				<view class="w-tit">设置定制</view>
				<scroll-view class="w-con" :scroll-top="scrollTop2" scroll-y="true">
					<view class="w-con-t">材质：</view>
					<view class="w-con-c">
						<block v-for="(item,index) in list" :key="index">
							<view class="w-con-c-li" @click="choose(index)"
								:style="{background:item.statu?'#CBE6FF':'#f5f5f5',color:item.statu?'#198FFF':'#999'}">
								{{item.name}}
							</view>
						</block>
					</view>
				</scroll-view>
				<view class="w-but">
					<view class="w-but-txt" @click="cancel('tip')">取消</view>
					<view class="w-but-txt" @click="confirm">确认</view>
				</view>
			</view>
		</w-popup>
		<!-- 下拉框 -->
		<u-popup class="popup-content" mode='bottom' border-radius="16" v-model="show">
			<view class="header">
				<view class="title">{{poptype==='1'?'设置一级关联：':poptype==='2'?'设置二级关联：':'设置三级关联'}}</view>
			</view>
			<scroll-view class="body" scroll-y="true">
				<block v-for="(item,index) in list2" :key="index">
					<view class="box" @click="checks(item.id,item.checked)">
						<view class="box-name" :style="{color:item.checked?'#198FFF':'#999'}">{{item.label}}</view>
						<view class="box-icon">
							<image class="box-icon-dagou" v-if="item.checked" :src="$mAssetsPath.icon_dagou"></image>
						</view>
					</view>
				</block>
			</scroll-view>
			<view @tap="cancel" hover-class="none" class="footer">取消</view>
		</u-popup>
	</view>
</template>

<script>
	import wPopup from '@/components/w-popup/w-popup2.vue';
	export default {
		name: "com-top",
		components: {
			wPopup
		},
		props: {
			//下拉框数据
			list2: {
				type: Array,
				default () {
					return [{
						label: "橱窗",
						id: 1
					}, {
						label: "地杆",
						id: 2
					}, {
						label: "橱窗",
						id: 3
					}, {
						label: "VIP",
						id: 4
					}, {
						label: "地杆",
						id: 5
					}, {
						label: "橱窗",
						id: 6
					}, {
						label: "VIP",
						id: 7
					}, {
						label: "橱窗",
						id: 8
					}, {
						label: "VIP",
						id: 9
					}]
				}
			},
			options: {
				type: Array,
				default () {
					return [{
							text: "删除",
							style: {
								backgroundColor: "#C7C6CD"
							}
						},
						{
							text: "取消",
							style: {
								backgroundColor: "#dd524d"
							}
						}
					]
				}
			},
			obj: {
				type: Object,
				default () {
					return {
						count_money: 999,
						sup_name: '供应商一',
						pro_img: '/static/data-img/img.jpg',
						pro_name: 'XX系列图片系列图片系列图片',
						pro_txt: ['男', '鞋', '都市'],
						remark: '此订单需注意尺寸',
						datalist: [{
							pro_name: '橱窗',
							texture: ['塑料', '玻璃', '棉'],
							list: [{
								type: 1,
								name: '玻璃贴',
								list: [{
									name: '玻璃左',
									sizew: '570',
									sizeh: '370',
									num: 1
								}, {
									name: '玻璃右',
									sizew: '570',
									sizeh: '370',
									num: 1
								}, ]
							}, {
								name: '背景海报',
								type: 2,
								sizew: '500',
								sizeh: '370',
								num: 3
							}, {
								name: '道具POP',
								type: 2,
								sizew: '500',
								sizeh: '370',
								num: 3
							}]
						}]
					}
				}
			},
			pageType: {
				type: String,
				default: 'pop'
			},
			list: {
				type: Array,
				default () {
					return [{
						name: '塑料'
					}, {
						name: '黑胶玻璃贴'
					}, {
						name: '皮革'
					}, {
						name: '纸'
					}, {
						name: '丝绸'
					}, {
						name: '棉丝皮革纸'
					}, {
						name: '塑料'
					}, {
						name: '黑胶玻璃贴'
					}, {
						name: '皮革'
					}, {
						name: '纸'
					}, {
						name: '丝绸'
					}, {
						name: '棉丝皮革纸'
					}, {
						name: '塑料'
					}, {
						name: '黑胶玻璃贴'
					}, {
						name: '皮革'
					}, {
						name: '纸'
					}, {
						name: '丝绸'
					}, {
						name: '棉丝皮革纸'
					}, {
						name: '塑料'
					}, {
						name: '黑胶玻璃贴'
					}, {
						name: '皮革'
					}, {
						name: '纸'
					}, {
						name: '丝绸'
					}, {
						name: '棉丝皮革纸'
					}]
				}
			}
		},
		data() {
			const elId1 = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
			const elId2 = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
			return {
				showtip: false, //是否显示弹窗1
				content1: '顶部弹 popup',
				type1: '', //弹窗显示方式
				scrollTop2: 0,
				sel_ind: 0,

				show: false, //弹窗
				poptype: 1, //弹窗类型


				elId1: elId1,
				elId2: elId2,
				transformX1: 'translateX(0px)',
				transformX2: 'translateX(0px)',
				messageIndex1: -1,
				messageIndex2: -1,
			}
		},
		created() {
			this.direction1 = ''
			this.startX1 = 0
			this.startY1 = 0
			this.btnGroupWidth1 = 0
			this.isMoving1 = false

			this.direction2 = ''
			this.startX2 = 0
			this.startY2 = 0
			this.btnGroupWidth2 = 0
			this.isMoving2 = false
		},
		// #ifdef H5
		mounted() {
			if(this.pageType==='pop'){
				this.getSize1();
				this.getSize2();
			}else if(this.pageType==='prop'){
				this.getSize1();
			}
			
		},
		// #endif
		// #ifndef H5
		onReady() {
			if(this.pageType==='pop'){
				this.getSize1();
				this.getSize2();
			}else if(this.pageType==='prop'){
				this.getSize1();
			}
		},
		// #endif
		methods: {
			//触摸开始（手指放在触摸屏上）
			touchStart1(event) {
				console.log(1, event)
				if (event.currentTarget.dataset.disabled === true) {
					return;
				}
				this.startX1 = event.touches[0].pageX;
				this.startY1 = event.touches[0].pageY;
			},
			// 拖动（手指在触摸屏上移动）
			touchMove1(event) {
				console.log(2, event)
				if (this.direction1 === 'Y' || event.currentTarget.dataset.disabled === true) {
					this.direction1 = '';
					return;
				}
				var moveY = event.touches[0].pageY - this.startY1,
					moveX = event.touches[0].pageX - this.startX1;
				if (!this.isMoving1 && Math.abs(moveY) > Math.abs(moveX) || Math.abs(moveY) > 100 || Math.abs(moveX) <
					50) { //纵向滑动//参数100与50可调节侧滑灵敏度
					this.direction1 = 'Y';
					return;
				}
				this.direction1 = moveX > 0 ? 'right' : 'left';
				this.messageIndex1 = moveX < 0 ? event.currentTarget.dataset.index : -1;
				this.isMoving1 = true;
			},
			// 触摸结束（手指从触摸屏上移开）
			touchEnd1(event) {
				console.log(3, event)
				this.isMoving1 = false;
				if (this.direction1 !== 'right' && this.direction1 !== 'left') {
					this.direction1 = '';
					return;
				}
				if (this.direction1 == 'right') {
					this.messageIndex1 = -1;
				}
				this.endMove1(event)
			},
			// 是在拖动中断时候触发
			endMove1(event) {
				console.log(4, event)
				if (this.direction1 === 'Y' || event.currentTarget.dataset.disabled === true) {
					this.direction1 = '';
					return;
				}
				if (this.messageIndex1 !== -1) {
					this.transformX1 = `translateX(${-this.btnGroupWidth1}px)`;
					this.$emit('opened');
				} else {
					this.transformX1 = 'translateX(0px)';
					this.$emit('closed');
				}
				this.direction1 = '';
			},
			getSize1() {
				uni.createSelectorQuery().in(this).select(`#${this.elId1}`).boundingClientRect().exec((ret) => {
					this.btnGroupWidth1 = ret[0].width;
				});
			},
			touchStart2(event) {
				console.log(11, event)
				if (event.currentTarget.dataset.disabled === true) {
					return;
				}
				this.startX2 = event.touches[0].pageX;
				this.startY2 = event.touches[0].pageY;
			},
			touchMove2(event) {
				console.log(22, event)
				if (this.direction2 === 'Y' || event.currentTarget.dataset.disabled === true) {
					this.direction2 = '';
					return;
				}
				var moveY = event.touches[0].pageY - this.startY2,
					moveX = event.touches[0].pageX - this.startX2;
				if (!this.isMoving2 && Math.abs(moveY) > Math.abs(moveX) || Math.abs(moveY) > 100 || Math.abs(moveX) <
					50) { //纵向滑动//参数100与50可调节侧滑灵敏度
					this.direction2 = 'Y';
					return;
				}
				this.direction2 = moveX > 0 ? 'right' : 'left';
				this.messageIndex2 = moveX < 0 ? event.currentTarget.dataset.index : -1;
				this.isMoving2 = true;
			},
			touchEnd2(event) {
				console.log(33, event)
				this.isMoving2 = false;
				if (this.direction2 !== 'right' && this.direction2 !== 'left') {
					this.direction2 = '';
					return;
				}
				if (this.direction2 == 'right') {
					this.messageIndex2 = -1;
				}
				this.endMove2(event)
			},
			endMove2(event) {
				console.log(44, event)
				if (this.direction2 === 'Y' || event.currentTarget.dataset.disabled === true) {
					this.direction2 = '';
					return;
				}
				if (this.messageIndex2 !== -1) {
					this.transformX2 = `translateX(${-this.btnGroupWidth2}px)`;
					this.$emit('opened');
				} else {
					this.transformX2 = 'translateX(0px)';
					this.$emit('closed');
				}
				this.direction2 = '';
			},
			getSize2() {
				uni.createSelectorQuery().in(this).select(`#${this.elId2}`).boundingClientRect().exec((ret) => {
					this.btnGroupWidth2 = ret[0].width;
				});
			},
			//替换图片
			replace_img(id) {
				this.$emit('replace_img', id);
			},
			//删除图片
			delete_img(id) {
				this.$emit('delete_img', id);
			},
			//编辑备注
			edit_remark() {
				this.$emit('edit_remark', id);
			},
			choose(index) {
				this.$emit('choose', index);
			},
			confirm() {
				let list = []
				if (this.list && this.list.length > 0) {
					this.list.forEach((item, ind) => {
						if (item.statu) {
							list.push(item.name)
						}
					})
				}
				this.$emit('confirm', list, this.sel_ind);
				this.showtip = false;
			},
			add_pro(poptype) {
				this.poptype = poptype
				this.show = true;
			},
			//选择定制材质
			sel_mat(index) {
				this.$emit('sel_mat');
				this.sel_ind = index;
				this.content1 = 'center'
				this.type1 = 'center';
				this.showtip = true;

			},
			//一级减少
			rednum2(index, index2) {
				this.$emit('rednum2', index, index2)
			},
			//一级增加
			addnum2(index, index2) {
				this.$emit('addnum2', index, index2)
			},
			//二级减少
			rednum1(index, index2, index3) {
				this.$emit('rednum1', index, index2, index3)
			},
			//二级增加
			addnum1(index, index2, index3) {
				this.$emit('addnum1', index, index2, index3)
			},
			change1(e) {
				if (!e.show) {
					this.showtip = false;
				}
			},
			//取消
			cancel(type) {
				this['show' + type] = false
			},
		}
	}
</script>

<style lang="scss" scoped>
	/* 下拉窗口 */
	.popup-content {
		display: flex;
		flex-direction: column;

		.header {
			display: flex;
			border-bottom: 1rpx solid #eee;
			height: 100rpx;

			.title {
				line-height: 100rpx;
				padding: 0 30rpx;
				text-align: left;
				font-size: 32rpx;
				color: #333;
				font-weight: bold;
			}
		}

		.body {
			display: flex;
			max-height: 700rpx;
			flex-direction: column;

			.box {
				display: flex;
				justify-content: center;
				align-items: center;
				height: 100rpx;
				border-bottom: 1rpx solid #eee;
				font-size: 36rpx;

				.box-name {
					margin-right: 30rpx;
				}

				.box-icon {
					width: 34rpx;

					.box-icon-dagou {
						width: 34rpx;
						height: 28rpx;
					}
				}
			}
		}

		.footer {
			height: 100rpx;
			color: $font-color-r;
			font-size: 36rpx;
			text-align: center;
			line-height: 88rpx;
			background: $uni-bg-color;
			margin-right: 50rpx;
		}
	}
	.li-texture-bot {
			width: 84rpx;
			height: 52rpx;
		}

	.li-texture-bot1 {
		width: 84rpx;
		height: 52rpx;
		margin-bottom: 40rpx;
	}
	
	.li-texture-bot2 {
		width: 84rpx;
		height: 52rpx;
		margin-bottom: 40rpx;
	}
	
	.li-texture-bot3 {
		width: 84rpx;
		height: 52rpx;
		margin-bottom: 40rpx;
	}

	/* 提示窗口 */
	.w-tip {
		/* #ifndef APP-NVUE */
		display: flex;
		flex-direction: column;
		/* #endif */
		width: 80vw;
		min-height: 300rpx;
		border-radius: 10rpx;
		background-color: #fff;
		box-shadow: 0rpx 7rpx 7rpx 0rpx rgba(0, 0, 0, 0.1);
		margin: 30rpx auto 0;

		.w-tit {
			font-size: 36rpx;
			font-weight: bold;
			color: $font-color-3;
			line-height: 90rpx;
			height: 90rpx;
			text-align: center;
			border-bottom: 1rpx solid #f5f5f5;
		}

		.w-but {
			display: flex;
			font-size: 32rpx;
			font-weight: 400;
			color: $font-color-b3;
			height: 84rpx;
			line-height: 84rpx;

			.w-but-txt {
				flex: 1;
				text-align: center;
				border-right: 1rpx solid #f5f5f5;
			}

			.w-but-txt:last-of-type {
				border-right: none;
			}
		}

		.w-con {
			display: flex;
			flex-direction: column;
			height: 400rpx;
			font-size: 32rpx;
			font-weight: 400;
			color: $font-color-3;
			border-bottom: 1rpx solid #f5f5f5;

			.w-con-t {
				font-size: 28rpx;
				font-weight: 400;
				color: $font-color-3;
				padding: 10rpx 30rpx;
			}

			.w-con-c {
				display: flex;
				flex-wrap: wrap;
				padding: 10rpx 30rpx;

				.w-con-c-li {
					height: 52rpx;
					line-height: 52rpx;
					padding: 0 20rpx;
					margin: 0 20rpx 20rpx 0;
					border-radius: 6rpx;
					font-size: 28rpx;
					font-weight: 400;
				}
			}
		}
	}

	.com-content {
		display: flex;
		flex-direction: column;
		width: 100%;
		padding: 30rpx 30rpx 0 30rpx;

		.com-top2 {
			display: flex;
			flex-direction: column;
			margin-bottom: 30rpx;
			position: relative;

			.sel-img1 {
				position: absolute;
				right: 120rpx;
				top: 30rpx;
				width: 60rpx;
				height: 60rpx;
			}

			.sel-img2 {
				position: absolute;
				right: 30rpx;
				top: 30rpx;
				width: 60rpx;
				height: 60rpx;
			}

			.com-body-img {
				width: 100%;
				height: 388rpx;
				border-radius: 10rpx;
				margin-bottom: 30rpx;
				overflow: hidden;
			}

			.com-body-box {
				display: flex;
				flex-direction: column;
				border-bottom: 1rpx solid #f5f5f5;

				.box-name {
					font-size: 32rpx;
					font-weight: 400;
					color: $font-color-3;
					margin-bottom: 26rpx;
				}

				.box-txt {
					display: flex;
					margin-bottom: 26rpx;

					.box-txt-li {
						height: 38rpx;
						line-height: 38rpx;
						font-size: 24rpx;
						font-weight: 400;
						color: $font-color-9;
						padding: 0 20rpx;
						background: $uni-bg-color-grey;
						border-radius: 4rpx;
						margin-right: 20rpx;
					}
				}

				.box-remark {
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 20rpx 0;
					border-top: 1rpx solid #f5f5f5;

					.box-remark-l {
						width: calc(100% - 60rpx);
						font-size: 28rpx;
						font-weight: 400;
						color: #FE5252;
					}

					.box-remark-r {
						margin-left: 30rpx;
						width: 30rpx;
						height: 30rpx;
					}
				}
			}
		}

		.com-body {
			width: 100%;
			overflow: hidden;
			display: flex;
			flex-direction: column;

			.com-body-count {
				display: flex;
				justify-content: space-between;

				.count-name {
					font-size: 28rpx;
					font-weight: 400;
					line-height: 40rpx;
					color: $font-color-3;

					.count-name-txt {
						color: $font-color-9;
					}
				}

				.count-money {
					font-size: 28rpx;
					font-weight: 400;
					line-height: 40rpx;
					color: #FE5252;
				}
			}

			.li-texture {
				display: flex;
				border-top: 1rpx solid #f5f5f5;
				border-bottom: 1rpx solid #f5f5f5;
				line-height: 80rpx;

				.li-texture-txt {
					margin-right: 30rpx;
				}
			}

			.com-body-li {

				display: flex;
				flex-direction: column;
				margin-bottom: 30rpx;
				font-size: 28rpx;
				font-weight: 400;
				color: $font-color-3;

				//滑动
				.slide-box {
					width: 200%;
					display: flex;
					flex-direction: row;
					flex-wrap: wrap;
					transition: transform 350ms cubic-bezier(.165, .84, .44, 1);

					.li-box-li {
						display: flex;
						justify-content: center;
						align-items: center;
						margin-bottom: 40rpx;
						width: 50%;

						.li-box-o {
							margin-left: 30rpx;
							height: 52rpx;
							line-height: 52rpx;
							text-align: center;
							border: 1rpx solid #EEEEEE;
							border-radius: 6rpx;
							flex: 25;
						}

						.li-box-t {
							flex: 50;
							display: flex;
							align-items: center;
							justify-content: center;
							color: $font-color-9;

							.li-box-w {
								margin: 0 10rpx;
							}

							.input-row-w {
								margin: 0 10rpx;
								padding: 0 10rpx;
								width: 120rpx;
								height: 52rpx;
								border: 1rpx solid #EEEEEE;
								border-radius: 6rpx;
								font-size: 28rpx;
							}
						}

						.li-box-th {
							flex: 25;
							display: flex;
							align-items: center;
							justify-content: flex-end;

							.li-box-th-num {
								width: 60rpx;
								text-align: center;
								color: $font-color-b3;
							}

							.icon-jj {
								width: 42rpx;
								height: 42rpx;
							}
						}
					}

					.uni-swipe-action__btn-group {
						display: flex;
						flex-direction: row;
						height: 52rpx;
						width: 206rpx;
						padding-left: 30rpx;

						.uni-swipe-action--btn {
							flex: 1;
							text-align: center;
							line-height: 52rpx;
						}
					}

					.li-box-li2 {
						display: flex;
						justify-content: center;
						align-items: center;
						margin-bottom: 40rpx;
						width: 50%;

						.li-box-o {
							margin-right: 30rpx;
							height: 52rpx;
							line-height: 52rpx;
							text-align: center;
							border: 1rpx solid #EEEEEE;
							border-radius: 6rpx;
							flex: 25;
						}

						.li-box-t {
							flex: 50;
							display: flex;
							align-items: center;
							justify-content: center;
							color: $font-color-9;

							.li-box-w {
								margin: 0 10rpx;
							}

							.input-row-w {
								margin: 0 10rpx;
								padding: 0 10rpx;
								width: 120rpx;
								height: 52rpx;
								border: 1rpx solid #EEEEEE;
								border-radius: 6rpx;
								font-size: 28rpx;
							}
						}

						.li-box-th {
							flex: 25;
							display: flex;
							align-items: center;
							justify-content: flex-end;

							.li-box-th-num {
								width: 60rpx;
								text-align: center;
								color: $font-color-b3;
							}

							.icon-jj {
								width: 42rpx;
								height: 42rpx;
							}
						}
					}
				}


				.li-box {
					display: flex;
					margin-bottom: 40rpx;

					.li-box-o {
						padding: 0 25rpx;
						height: 52rpx;
						line-height: 52rpx;
						text-align: center;
						border: 1rpx solid #EEEEEE;
						border-radius: 6rpx;
					}
				}

				.li-box-o-buttom {
					margin-left: 30rpx;
					margin-bottom: 40rpx;
					width: 84rpx;
					padding: 0 25rpx;
					height: 52rpx;
					border: 1rpx solid #EEEEEE;
					border-radius: 6rpx;
					display: flex;
					justify-content: center;
					align-items: center;

					.li-box-o-icon {
						width: 30rpx;
						height: 30rpx;
					}
				}

				.li-box-o-buttom2 {
					margin-bottom: 40rpx;
					width: 84rpx;
					padding: 0 25rpx;
					height: 52rpx;
					border: 1rpx solid #EEEEEE;
					border-radius: 6rpx;
					display: flex;
					justify-content: center;
					align-items: center;

					.li-box-o-icon {
						width: 30rpx;
						height: 30rpx;
					}
				}







				.li-title {
					display: flex;
					margin-bottom: 40rpx;

					.li-title-t {
						padding: 0 10rpx;
						background: #CBE6FF;
						border-radius: 6rpx;
						font-size: 32rpx;
						line-height: 52rpx;
						color: $font-color-3;

					}
				}
			}
		}
	}
</style>
